//
//  NEDFormService.h
//  NEDFormView_Example
//
//  Created by 000 on 2022/1/7.
//  Copyright © 2022 000. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "NEDFormItem.h"
#import "NEDFormItem+Add.h"

NS_ASSUME_NONNULL_BEGIN

UIKIT_EXTERN NEDFormItem * NEDFormInit(void);

/// 空行 占位行
UIKIT_EXTERN NEDFormItem * NEDFormInitSpace(CGFloat height);

/// 中间位置的 标题
UIKIT_EXTERN NEDFormItem * NEDFormInitTitleCenter(NSString * title);
/// 左边位置的 标题
UIKIT_EXTERN NEDFormItem * NEDFormInitTitleLeft(NSString * title);
/// 两边位置的 标题 副标题
UIKIT_EXTERN NEDFormItem * NEDFormInitTitleLeftRight(NSString * title, NSString * subTitle);

/// 左侧 图标+标题 显示 图片是图片名字或者链接
UIKIT_EXTERN NEDFormItem * NEDFormInotLeftIconAndTitle(NSString * title, NSString * imageURL);


/// 对 NEDFormItem 统一设置
@interface NSArray(NEDForm)
/// 左边距
- (NSArray<NEDFormItem *> *(^)(CGFloat margin))form_marginLeft;
/// 右边距
- (NSArray<NEDFormItem *> *(^)(CGFloat margin))form_marginRight;
/// 高度
- (NSArray<NEDFormItem *> *(^)(CGFloat height))form_height;
/// 左边视图宽度 中间的自己适配
- (NSArray<NEDFormItem *> *(^)(CGFloat width))form_widthLeft;
/// 右边视图宽度 中间的自己适配
- (NSArray<NEDFormItem *> *(^)(CGFloat width))form_widthRight;

/// 隐藏底部分割线条
- (NSArray *)form_hiddenBottomLine;

@end

NS_ASSUME_NONNULL_END
